package round.table.knights.five;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class KnightApp {
  public static void main(String[] args) throws Exception {
    ApplicationContext ctx = new ClassPathXmlApplicationContext("round/table/knights/five/knight.xml");

    Knight knight1 =(Knight) ctx.getBean("knight1");
    knight1.embarkOnQuest();

    Knight knight2 =(Knight) ctx.getBean("knight2");
    knight2.embarkOnQuest();
  }
}